package com.lzh.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;


@Repository
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("供应商")
public class Supplier {
    @ApiModelProperty("id修改时不允许为空")
    int id;

    @ApiModelProperty("供应商名称")
    @NotBlank(message = "公司名称不允许为空")
    String name;

    @ApiModelProperty("地区")
    int area;

    @ApiModelProperty("地址")
     String address;

    @ApiModelProperty("公司简介")
    String introduction;


    @ApiModelProperty("主营产品分类")
    int productType;

    @ApiModelProperty("报价系数")
    String quotation;

    @ApiModelProperty("材料种类")
    String materialsType;

    @ApiModelProperty("是否删除")
    int isdel;

    @ApiModelProperty("logo")
    String logo;

    @ApiModelProperty("营业执照")
    String license;

    @ApiModelProperty("账号")
    String account;

    @ApiModelProperty("密码")
    String password;

    @ApiModelProperty("供应商联系人")
    @Valid
    SupplierContact contact;

    @ApiModelProperty("供应商收付款")
    SupplierPayformation supplierPayformation;


}
